package com.ruoyi.eqmonitor.workorder.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.eqmonitor.workorder.domain.BizSign;
import com.ruoyi.eqmonitor.workorder.service.IBizSignService;

@RestController
@RequestMapping("/sign")
public class BizSignController extends BaseController{
	
    @Autowired
    private IBizSignService bizSignService;

    @GetMapping("/list")
    public TableDataInfo<?> list(BizSign bizSign){
        startPage();
        List<BizSign> list = bizSignService.selectBizSignList(bizSign);
        return getDataTable(list);
    }

    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") String id){
        return AjaxResult.success(bizSignService.selectBizSignById(id));
    }
}
